keys = {}

for i in range(26):
    n = ord('a')+i
    c = chr(n)
    keys[c] = n

    n = ord('A')+i
    c = chr(n)
    keys[c] = n

keys['left'] =  276
keys['up'] =    273
keys['right'] = 275
keys['down'] =  274
keys['escape'] = 27
keys['insert'] = 277
keys['home'] = 278
keys['pgup'] = 280
keys['delete'] = 127
keys['end'] = 279
keys['pgdn'] = 281
keys['space'] = 32
keys['enter'] = 13
keys['backspace'] = 8

